package main.java.com.example.test.pojo;

import lombok.Data;
import org.springframework.stereotype.Component;


@Component
@Data
public class ticket {
    int id;
    String airline;
    String src_airport;
    String dst_airport;
    String start_time;
    String end_time;
    float price;
    int seat_count;
    String start;
    String end;
    String date;

    public void setStart(String start) {
        this.start = start;
    }

    public void setEnd(String end) {
        this.end = end;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getStart() {
        return start;
    }

    public String getEnd() {
        return end;
    }

    public String getDate() {
        return date;
    }

    public ticket() {
    }

    public ticket(int id, String airline, String src_airport, String dst_airport, String start_time, String end_time, float price, int seat_count, String start, String end, String date) {
        this.id = id;
        this.airline = airline;
        this.src_airport = src_airport;
        this.dst_airport = dst_airport;
        this.start_time = start_time;
        this.end_time = end_time;
        this.price = price;
        this.seat_count = seat_count;
        this.start = start;
        this.end = end;
        this.date = date;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAirline() {
        return airline;
    }

    public void setAirline(String airline) {
        this.airline = airline;
    }

    public String getSrc_airport() {
        return src_airport;
    }

    public void setSrc_airport(String src_airport) {
        this.src_airport = src_airport;
    }

    public String getDst_airport() {
        return dst_airport;
    }

    public void setDst_airport(String dst_airport) {
        this.dst_airport = dst_airport;
    }

    public String getStart_time() {
        return start_time;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public String getEnd_time() {
        return end_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public int getSeat_count() {
        return seat_count;
    }

    public void setSeat_count(int seat_count) {
        this.seat_count = seat_count;
    }
}
